package com.company.project.mapper.ldjsc.zbgxrq;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.project.entity.ldjsc.zbgxrq.TbTemplateEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 模板表
 *
 * @author wenbin
 * @email *****@mail.com
 * @date 2025-08-21 08:54:03
 */
@Mapper
public interface TbTemplateMapper extends BaseMapper<TbTemplateEntity> {

    @Select("select source,name,tb_cycle,tb_deadline,tb_delay from tb_template WHERE TRIM(name) = #{name} ORDER BY create_time DESC;")
    List<TbTemplateEntity> selectByName(String name);
}
